package all

type Command interface {
	Execute()
}

// Off 关闭命令
type Off struct {
	Device Device
}

func (o *Off) Execute() {
	o.Device.Off()
}

// On 打开命令
type On struct {
	Device Device
}

func (o *On) Execute() {
	o.Device.On()
}
